package com.jd.nbd.strategy01;

/**
 * Created by liyue on 2017/8/25
 */
public class Context {
  private IStrategy strategy;

  //构造函数，要你使用哪个妙计
  public Context(IStrategy strategy) {
    this.strategy = strategy;
  }

  public void operate() {
    this.strategy.operate();
  }
}
